import requests
from bs4 import BeautifulSoup

r = requests.get('http://www.wise.xmu.edu.cn/people/faculty')
html = r.content

soup = BeautifulSoup(html,'html.parser')    #html.parser是解析器

div_people_list = soup.find('div', attrs={'class': 'people_list'})
# print(div_people_list)

a_s = div_people_list.find_all('a', attrs={'target': '_blank'})
# print(a_s)

count = 1
for a in a_s:
    url = a['href'].strip()
    name = a.get_text().strip()
    print(count, name, url)
    count +=1